Optimal. Leaf size=38 \[ \frac {B (b+c x)^4}{4 c^2}-\frac {(b+c x)^3 (b B-A c)}{3 c^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {765} \begin {gather*} \frac {B (b+c x)^4}{4 c^2}-\frac {(b+c x)^3 (b B-A c)}{3 c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 765
Rubi steps
\begin {align*} \int \frac {(A+B x) \left (b x+c x^2\right )^2}{x^2} \, dx &=\int \left (\frac {(-b B+A c) (b+c x)^2}{c}+\frac {B (b+c x)^3}{c}\right ) \, dx\\ &=-\frac {(b B-A c) (b+c x)^3}{3 c^2}+\frac {B (b+c x)^4}{4 c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 47, normalized size = 1.24 \begin {gather*} \frac {1}{12} x \left (12 A b^2+4 c x^2 (A c+2 b B)+6 b x (2 A c+b B)+3 B c^2 x^3\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.03, size = 57, normalized size = 1.50 \begin {gather*} A b^2 x+A b c x^2+\frac {1}{3} A c^2 x^3+\frac {1}{2} b^2 B x^2+\frac {2}{3} b B c x^3+\frac {1}{4} B c^2 x^4 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.39, size = 48, normalized size = 1.26 \begin {gather*} \frac {1}{4} \, B c^{2} x^{4} + A b^{2} x + \frac {1}{3} \, {\left (2 \, B b c + A c^{2}\right )} x^{3} + \frac {1}{2} \, {\left (B b^{2} + 2 \, A b c\right )} x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 49, normalized size = 1.29 \begin {gather*} \frac {1}{4} \, B c^{2} x^{4} + \frac {2}{3} \, B b c x^{3} + \frac {1}{3} \, A c^{2} x^{3} + \frac {1}{2} \, B b^{2} x^{2} + A b c x^{2} + A b^{2} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 49, normalized size = 1.29 \begin {gather*} \frac {B \,c^{2} x^{4}}{4}+A \,b^{2} x +\frac {\left (A \,c^{2}+2 b B c \right ) x^{3}}{3}+\frac {\left (2 A b c +b^{2} B \right ) x^{2}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.95, size = 48, normalized size = 1.26 \begin {gather*} \frac {1}{4} \, B c^{2} x^{4} + A b^{2} x + \frac {1}{3} \, {\left (2 \, B b c + A c^{2}\right )} x^{3} + \frac {1}{2} \, {\left (B b^{2} + 2 \, A b c\right )} x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 47, normalized size = 1.24 \begin {gather*} x^2\,\left (\frac {B\,b^2}{2}+A\,c\,b\right )+x^3\,\left (\frac {A\,c^2}{3}+\frac {2\,B\,b\,c}{3}\right )+\frac {B\,c^2\,x^4}{4}+A\,b^2\,x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 49, normalized size = 1.29 \begin {gather*} A b^{2} x + \frac {B c^{2} x^{4}}{4} + x^{3} \left (\frac {A c^{2}}{3} + \frac {2 B b c}{3}\right ) + x^{2} \left (A b c + \frac {B b^{2}}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________